// @ts-expect-error defineFakeRoute
import { defineFakeRoute } from "vite-plugin-fake-server/client";

export default defineFakeRoute([
  {
    url: "/roleList",
    method: "get",
    response: () => {
      return {
        code: 200,
        message: "success",
        data: {
          list: [
            {
              id: 1,
              roleName: "超级管理员",
              roleKey: "admin",
              roleSort: 1,
              status: 1,
              remark: "西常值林克达小工己问半件广物基效",
              createTime: "2022-06-26 00:00:00"
            },
            {
              id: 2,
              roleName: "普通用户",
              roleKey: "common",
              roleSort: 2,
              status: 0,
              remark: "万代强和需听见海证厂任",
              createTime: "2022-06-26 00:00:00"
            }
          ],
          total: 100
        }
      };
    }
  }
]);
